#include "Engine.hpp"

Engine::Engine(){
    
}

float Engine::distance(Entity* a, Entity* b) const{
    return std::sqrt(std::pow(a->x - b->x, 2) + std::pow(a->y - b->y, 2));
}

float Engine::distance(sf::Vector2f a, Entity* b){
    return std::sqrt(std::pow(a.x - b->x, 2) + std::pow(a.y - b->y, 2));
}